<template>
  <div>
    <header>
      <i class="el-icon-arrow-left" @click="sy"></i>
      <span>我的订单</span>
      <div class="ddd">

        <i class="el-icon-more"></i>
        <i class="el-icon-remove-outline"></i>
      </div>
    </header>
    <main>
      <el-tabs v-model="activeName" @tab-click="handleClick" class="fy">
        <el-tab-pane label="全部" name="first">
          <div class="box3">
            <div class="sj" @click="$router.push({ path: '/payments' })" v-for="item in getlist">
              <div class="top">
                <span>2021.01.01 10:10</span> <span class="h">已完成</span>
              </div>
              <div class="centre">
                <div class="all">
                  <img src=" https://i.postimg.cc/mZ5pcJJq/image.jpg" width="60" height="60" alt="">
                  <div>
                    <span class="q">{{ item.q }} </span>
                    <span class="w">{{item.w}}</span>
                  </div>
                  <span class="e">{{item.e}}</span>
                </div>


                <div class="box1">
                  <p class="t">订单号: {{item.t}}</p>
                  <p class="y">订单金额: ¥{{item.y}}</p>
                  <p class="u">线上微信支付: ¥{{item.u}}</p>
                </div>
              </div>
            </div>
          </div>
          <h2>暂无订单</h2>
        </el-tab-pane>
        <el-tab-pane label="待支付" name="second">
          <div class="main">
            <img src="https://i.postimg.cc/FsFVLrNr/Wechat-IMG90.jpg" alt="">
            <div>
              <span>暂无订单</span>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="待发货" name="third">
          <div class="main">
            <img src="https://i.postimg.cc/FsFVLrNr/Wechat-IMG90.jpg" alt="">
            <div>
              <span>暂无订单</span>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="待收货" name="fourth">
          <div class="main">
            <img src="https://i.postimg.cc/FsFVLrNr/Wechat-IMG90.jpg" alt="">
            <div>
              <span>暂无订单</span>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="已完成" name="ywc">
          <div class="box3">

            <div class="sj">
              <div class="top">
                <span>2021.01.01 10:10</span> <span class="h">已完成</span>
              </div>
              <div class="centre">
                <div class="all">
                  <img src=" https://i.postimg.cc/mZ5pcJJq/image.jpg" width="60" height="60" alt="">
                  <div>
                    <span class="q">示例服务 (示例数据) </span>
                    <span class="w">服务</span>
                  </div>
                  <span class="e">x1</span>
                </div>


                <div class="box1">
                  <p class="t">订单号: 210205153153111750</p>
                  <p class="y">订单金额: ¥168.00</p>
                  <p class="u">线上微信支付: ¥168.00</p>
                </div>
              </div>
            </div>
            <!-- <div class="sj">
              <div class="top">
                <span>2021.01.01 10:10</span> <span class="h">已完成</span>
              </div>
              <div class="centre">
                <div class="all">
                  <img src=" https://i.postimg.cc/mZ5pcJJq/image.jpg" width="60" height="60" alt="">
                  <div class="sl">
                    <span class="q">示例服务 (示例数据) </span>
                    <span class="w">服务</span>
                  </div>
                  <span class="e">x1</span>
                </div>


                <div class="box1">
                  <p class="t">订单号: 210205153153111750</p>
                  <p class="y">订单金额: ¥168.00</p>
                  <p class="u">线上微信支付: ¥168.00</p>
                </div>
              </div>
            </div> -->
            <!-- <div class="sj">
              <div class="top">
                <span>2021.01.01 10:10</span> <span class="h">已完成</span>
              </div>
              <div class="centre">
                <div class="all">
                  <img src=" https://i.postimg.cc/mZ5pcJJq/image.jpg" width="60" height="60" alt="">
                  <div>
                    <span class="q">示例服务 (示例数据) </span>
                    <span class="w">服务</span>
                  </div>
                  <span class="e">x1</span>
                </div>


                <div class="box1">
                  <p class="t">订单号: 210205153153111750</p>
                  <p class="y">订单金额: ¥168.00</p>
                  <p class="u">线上微信支付: ¥168.00</p>
                </div>
              </div>
            </div> -->
          </div>
          <h2>暂无订单</h2>
        </el-tab-pane>
      </el-tabs>

    </main>
  </div>
</template>

<script>
import axios from "axios";

export default {
  data() {
    return {
      activeName: 'first',
      list: [
        {

          tit: '全部',
        },
        {
          tit: '待支付',
        },
        {
          tit: '待发货',
        },
        {
          tit: '待收货',
        },
        {
          tit: '已完成',
        },
      ],
      getlist: [
        {
          q:'单人洗剪吹',
          w:'服务',
          e:'x1',
          t:'210205153153111754',
          y:'25.00',
          u:'25.00'
        },
        {
          q:'单人吹',
          w:'服务',
          e:'x1',
          t:'210205153153111753',
          y:'10.00',
          u:'10.00'
        },
        {
          q:'单人染头',
          w:'服务',
          e:'x1',
          t:'210205153153111752',
          y:'145.00',
          u:'145.00'
        },
        {
          q:'单人烫头',
          w:'服务',
          e:'x1',
          t:'210205153153111751',
          y:'145.00',
          u:'145.00'
        },
      ]
    }
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
    sy() {
      this.$router.push({ path: '/j' })
    },
    // orderList() {
    //   axios({
    //     url: "http://localhost:3001/api/pro/shoplist",
    //     method: "get",
    //     params: {
    //     }
    //   }).then(res => {
    //     console.log(res.data.data);
    //   })
    // }
  },
mounted(){
  // this.orderList()
}
}
</script>

<style scoped>
li {
  list-style: none;
}

header {
  width: 100%;
  height: 55px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
}

.el-icon-arrow-left {
  font-size: 35px;
  color: #000;
  margin-top: 10px;
  line-height: 55px;
  float: left;
}

header span {
  text-align: center;
  line-height: 55px;
  font-size: 18px;
}

.ddd {
  width: 67px;
  height: 35px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 30px;
}


.el-icon-more,
.el-icon-remove-outline {
  font-size: 20px;
  color: #000;
  line-height: 30px;
  margin: 3px;
  margin-left: 10px;
}

.box3 {
  height: 100%;
  background-color: #f6f6f6;
  overflow: hidden;
}

main {
  width: 100%;
  height: 100%;
}

main .top {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-between;
}

.fy {
  width: 100%;
  margin: 0 auto;
  background-color: #fff;

}


.sj {
  width: 100%;
  height: 280px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
  background-color: #fff;
  position: relative;
}

.sj .top {
  width: 360px;
  height: 40px;
  line-height: 40px;
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #f8f5f5;
}

.h {
  color: red;
}

.all {
  width: 100%;
  height: 80px;
  margin-top: 15px;
  display: flex;
  justify-content: space-around;

}

.all img {
  margin-top: 5px;
  margin-left: 5px;
  position: absolute;
  top: 50px;
  left: 40px;
}

.sj .top span {
  font-size: 16px;
}

.q {
  display: block;
  width: 200px;
  font-size: 20px;
  position: absolute;
  top: 50px;
  left: 130px;

}

.sl {
  position: relative;
}

.sl span {
  position: absolute;
  display: block;
  width: 70px;
}

.w {
  width: 30px;
  text-align: center;
  display: block;
  font-size: 12px;
  border: 1px solid #e18d8d;
  border-radius: 20px;
  color: #e18d8d;
  margin-top: 10px;
  position: absolute;
  top: 80px;
  left: 110px;
}

.e {
  display: block;
  font-size: 12px;
  color: #b1abab;
  margin-top: 50px;
  position: absolute;
  right: 40px;
  top: 45px;
}

.t {
  font-size: 18px;
  position: absolute;
  left: 40px;
  color: #ccc;
}

.box1 {
  position: relative;
}

.y {
  font-size: 16px;
  position: absolute;
  right: 30px;
  top: 40px;
}

.u {
  font-size: 14px;
  position: absolute;
  right: 50px;
  top: 75px;
  color: #b8b4b4;
}

main h2 {
  color: #ccc;
  text-align: center;
}

.main img {
  text-align: center;
  margin-left: 110px;
  margin-top: 200px;
}

.main div span {
  display: block;
  text-align: center;
  font-size: 18px;
}

.main {
  flex: 1;
  height: 674px;
  background-color: #f9f7f7de;
}
</style>